package com.parking.status.sync.netty.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by Administrator on 2015/9/18.
 */
public class RequestPre implements IRequest {

    @JsonIgnore
    protected long id;

    @JsonProperty("seqno")
    protected int seqno;

    protected String code;

    protected RequestCommon commRequest;

    public RequestPre(){}

    public RequestPre(int seqno, String clientId, String tsn, String sim, String psam, String sysVer, String appVer) {
        this.seqno = seqno;
        this.commRequest = new RequestCommon(clientId, tsn, sim, psam, sysVer, appVer);
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getSeqno() {
        return seqno;
    }

    public void setSeqno(int seqno) {
        this.seqno = seqno;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public RequestCommon getCommRequest() {
        return commRequest;
    }

    public void setCommRequest(RequestCommon commRequest) {
        this.commRequest = commRequest;
    }
}
